import request from '@/utils/request'

//获取批量添加题目任务列表
export function getTaskList(params) {
  return request({
    url: '/batch-add-task/',
    method: 'get',
    params,
  })
}

//添加任务
export function addTask(data) {
  return request({
    url: `/batch-add-task/`,
    method: 'post',
    data,
  })
}

//删除任务
export function deleteTask(id) {
  return request({
    url: `/batch-add-task/`,
    method: 'delete',
  })
}
